package com.hc.service;

import com.hc.entity.Manager;
import java.util.List;
import com.hc.utils.PageBean;
import com.hc.utils.PageParam;

public interface ManagerService {
    int addManager(Manager manager);

    int addManagerSelective(Manager manager);

    int batchAddManager(List<Manager> managerList);

    int deleteManagerById(Integer id);

	int deleteManagerByCondition(Manager manager);

    int batchDeleteManagerByIdList(List<Integer> idList);
	
    int updateManager(Manager manager);

    int updateManagerSelective(Manager manager);

    long getCount();

    long getCountByCondition(Manager manager);

    Manager getManagerById(Integer id);

    List<Manager> getAllManager();

	List<Manager> getManagerByCondition(Manager manager);
	
    PageBean<Manager> getManagerWithPagination(PageParam pageParam);

	PageBean<Manager> getManagerWithPaginationByCondition(PageParam pageParam, Manager manager);

    //////////////////////////// 外键相关 /////////////////////////////////////
    List<Manager> getManagerByRole(Integer role);

}